package com.yunao.web.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;

@Data
public class UserForm {
    private Integer id;
    @NotBlank(message = "姓名必填")
    @Length(min = 2 ,max = 15,message = "姓名长度不能小于2大于15")
    private String name;
    @NotBlank(message = "密码必填")
    private String password;
    private String email;
    private String nickname;
    @NotBlank(message = "角色必填")
    private String role;
    @NotBlank(message = "手机号必填")
    private String phone;
    @NotBlank(message = "组织必填")
    private String organ_id;
    //过期时间
    @NotBlank(message = "过期时间必填")
    private String expireDate;
    @NotBlank(message = "地址必填")
//    private String address;
    private String province;
    private String city;
    @NotBlank(message = "一级行业必填")
    private String firsttrade;
    private String secondtrade;
}
